<html>
<head>

</head>
<body>
<?php
echo '<?php' . "\n";
?>
session_start();
include('../../nusoap/nusoap.php');
include('../<?=$this->prefix?>WsdlService.php');
if(isset($_GET['go'])){
    $client = new <?=$this->prefix?>WsdlService();
<?php
    foreach($operation['input']['allElementsRequiredFirst'] as $element){
?>          $<?=$element['name']?> = $_GET['<?=$element['name']?>'];
            $_SESSION['<?=$element['name']?>'] = $_GET['<?=$element['name']?>'];
<?php
    }
?>
    $results = $client-><?=$operationKey?>(<?=implode(", ", $operation['input']['orderedMethodArgumentsNoNulls'])?>);
    echo '<h1>Results</h1>' . "\n" . "<pre>";
    print_r($results);
    echo "</pre>";
}
?>

<h1><?=$operationKey?> Test Form</h1>
<form>
<?php
    foreach($operation['input']['allElementsRequiredFirst'] as $element){
        ?><?=$element['name']?>: <input type="text" size="30" name="<?=$element['name']?>" value="<?='<?=isset($_SESSION[\'' . $element['name'] . '\']) ? $_SESSION[\'' . $element['name'] . '\'] : \'\'?>'?>"><br/>
    <?php
    }
    ?>
    <input type="hidden" name="go" value="true">
    <input type="submit">
</form>
<a href="./">Back To All Examples</a>
</body>
</html>